package com.PengGoBook.main.db;

import android.net.Uri;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: S7
 * Date: 13-5-29
 * Time: 上午10:04
 * To change this template use File | Settings | File Templates.
 */
public class ImageCacheColumn extends DatabaseColumn {

    public final static String TABLE_NAME = "imageCache";
    public final static String TIMESTAMP = "timestamp";
    public final static String Url = "url";
    /**
     * 单位：天
     */
    public final static String PAST_TIME = "past_time";

    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY
            + "/" + TABLE_NAME);
    private static final Map<String, String> mColumnMap = new HashMap<String, String>();
    static {

        mColumnMap.put(_ID, "integer primary key autoincrement");
        mColumnMap.put(TIMESTAMP, "TimeStamp");
        mColumnMap.put(Url, "text");
        mColumnMap.put(PAST_TIME, "TimeStamp");
    }


    @Override
    public String getTableName() {
        // TODO Auto-generated method stub
        return TABLE_NAME;
    }

    @Override
    public Uri getTableContent() {
        // TODO Auto-generated method stub
        return CONTENT_URI;
    }

    @Override
    protected Map<String, String> getTableMap() {
        // TODO Auto-generated method stub
        return mColumnMap;
    }

}